package org.restorator.dao.base;

import org.restorator.entity.Item;
import org.restorator.exception.DataStoreException;

import java.util.List;

/**
 * @author Snisar Bogdan.
 */
public interface ItemDao extends GenericDao<Item, Integer> {
	
	/**
	 * @param id
	 * @return List of Items by ID
	 * @throws DataStoreException
	 */
    List<Item> getItemsByOrderId(int id) throws DataStoreException;
    
    /**
     * @param categoriaId
     * @return List of Items by categoriaId
     * @throws DataStoreException
     */
    List<Item> getItemByCategoria(int categoriaId) throws DataStoreException;
}
